813b4e86495e2b0cc4703bd24f54600b29420f66,legacy/web/src/test/java/org/jboss/as/web/test/WebSubsystemTestCase.java,WebSubsystemTestCase,testRejectExpressions,#ModelTestControllerVersion#,182

Before Change


                                new FailedOperationTransformationConfig.NewAttributesConfig("ssl-protocol")
                        )
                        .addFailedAttribute(subsystem.append(PathElement.pathElement("connector", "https"), PathElement.pathElement("configuration", "ssl")),
                                new FailedOperationTransformationConfig.RejectExpressionsConfig("certificate-key-file", "ca-certificate-file", "key-alias",
                                        "password", "cipher-suite", "protocol", "verify-client", "verify-depth", "certificate-file", "ca-revocation-url",
                                        "ca-certificate-password", "keystore-type", "truststore-type", "session-cache-size", "session-timeout", "ssl-protocol")

                        )


                                // Connector http-vs
                        .addFailedAttribute(subsystem.append(PathElement.pathElement("connector", "http-vs")),
                                new FailedOperationTransformationConfig.NewAttributesConfig("virtual-server"))
                                // virtual-server=default-host
                        .addFailedAttribute(defaultHost.append(PathElement.pathElement("rewrite", "myrewrite")),
                                new FailedOperationTransformationConfig.RejectExpressionsConfig("flags", "pattern", "substitution"))
                        .addFailedAttribute(defaultHost.append(PathElement.pathElement("rewrite", "with-conditions")),
                                new FailedOperationTransformationConfig.RejectExpressionsConfig("flags", "pattern", "substitution"))
                        .addFailedAttribute(defaultHost.append(PathElement.pathElement("rewrite", "with-conditions"), PathElement.pathElement("condition", "https")),
                                new FailedOperationTransformationConfig.RejectExpressionsConfig("flags", "pattern", "test"))
                        .addFailedAttribute(defaultHost.append(PathElement.pathElement("configuration", "sso")),
                                new FailedOperationTransformationConfig.RejectExpressionsConfig("reauthenticate", "domain"))
        );

After Change


                // Connector https
        .addFailedAttribute(subsystem.append(PathElement.pathElement("connector", "https"), PathElement.pathElement("configuration", "ssl")),
                new ChainedConfig(Arrays.asList(new AttributesPathAddressConfig<?>[]{
                        new FailedOperationTransformationConfig.RejectExpressionsConfig("certificate-key-file", "ca-certificate-file", "key-alias",
                            "password", "cipher-suite", "protocol", "verify-client", "verify-depth", "certificate-file", "ca-revocation-url",
                            "ca-certificate-password", "keystore-type", "truststore-type", "session-cache-size", "session-timeout", "ssl-protocol"),
                            new FailedOperationTransformationConfig.NewAttributesConfig("ssl-protocol")
                    }),
                    "certificate-key-file", "ca-certificate-file", "key-alias",
                    "password", "cipher-suite", "protocol", "verify-client", "verify-depth", "certificate-file", "ca-revocation-url",
                    "ca-certificate-password", "keystore-type", "truststore-type", "session-cache-size", "session-timeout", "ssl-protocol"));

        if (modelVersion.getMicro() == 0) {
                // Connector http-vs
            config.addFailedAttribute(subsystem.append(PathElement.pathElement("connector", "http-vs")),
                new FailedOperationTransformationConfig.NewAttributesConfig("virtual-server"));
        }
                // virtual-server=default-host
        config.addFailedAttribute(defaultHost.append(PathElement.pathElement("rewrite", "myrewrite")),
                new FailedOperationTransformationConfig.RejectExpressionsConfig("flags", "pattern", "substitution"))
        .addFailedAttribute(defaultHost.append(PathElement.pathElement("rewrite", "with-conditions")),
                new FailedOperationTransformationConfig.RejectExpressionsConfig("flags", "pattern", "substitution"))
        .addFailedAttribute(defaultHost.append(PathElement.pathElement("rewrite", "with-conditions"), PathElement.pathElement("condition", "https")),
                new FailedOperationTransformationConfig.RejectExpressionsConfig("flags", "pattern", "test"))
        .addFailedAttribute(defaultHost.append(PathElement.pathElement("rewrite", "with-conditions"), PathElement.pathElement("condition", "no-flags")),
                new SetMissingRewriteConditionFlagsConfig("flags"))
        .addFailedAttribute(defaultHost.append(PathElement.pathElement("configuration", "sso")),
                new FailedOperationTransformationConfig.RejectExpressionsConfig("reauthenticate", "domain"));

        ModelTestUtils.checkFailedTransformedBootOperations(mainServices, modelVersion, xmlOps, config);